<!DOCTYPE html>
<html>
	<head>
		<title>首页</title>
		<meta charset="utf-8" />
		<meta name="keywords" content="" />
	    <meta name="description" content="" />
		<link rel="stylesheet" href="CSS/style.css" />
		<script type="text/javascript" src="JS/jquery-1.7.2.min.js" ></script>
		<script type="text/javascript" src="JS/index.js" ></script>
	</head>
	<body>
	<!-- header -->
<header>
			<div class="headcon">
				<div class="logo"><a href=""><img src="IMG/logo.png" /></a></div>
				<div class="lang">
				
				<!-- 中文 -->
					<div class="ch">
						<a href="../"><p><img src="IMG/CH.jpg"/></p>
						<p>中文版</p></a>
					</div>
				<!-- 中文 END-->
					
					<!-- 英文 -->
					<div class="en">
						<a href="URL"><p><img src="IMG/EN.jpg"/></p>
						<p>ENGLISHI</p></a>
					</div>
				<!-- 英文 END-->
					
				</div>
			</div>
			
		</header>
		

		<nav>
			<div class="navcon">
				<ul>
					<li><a href="{:U('/')}">HOME</a></li>
					
					<!-- 循环nav -->

					 <?php foreach (term('2')['child']['nav'] as $key => $termVo) {?>
				 

				 <!-- 循环一级导航 -->
				{if condition="$termVo['flag'] eq 'job'"  }
			    <li><a href="{:term(13)['url']}">{$termVo.name}</a>
				{else}
				<li><a href="{$termVo.url}">{$termVo.name}</a>
				{/if}
					
					
					<!-- 判断是否有子栏目 -->
				<?php if(!empty($termVo['child']['list'])){ ?>
						<div class="subnav">
							<div class="subleft">
								<ul>
								<!-- 循环二级导航 -->
								<?php foreach (term($termVo['id'])['child']['nav'] as $termVochild) {?>
								    
							
									
									<li><a href="{$termVochild.url}">{$termVochild.name}</a></li>
									
									
									<?php  } ?>
                                <!-- 循环二级导航 -->
								</ul>
							</div>
							<div class="subright">
							
							 <?php foreach (term(26)['content'] as $key => $value) {?>
								<p class="im"><img src="UPLOADS/{$value.cover_img}" /></p>
								<p><span style="color: #0064b2;"></span>{$value.description|msubstr=0,120,'utf-8',true}</p>

                               <?php } ?>
							</div>
						</div>
				<?php } ?> 	
					</li>
					 <!-- 循环一级导航 END-->
					 <?php  } ?>
					 
					 
					<!-- 循环nav END-->

				</ul>
			</div>
		</nav>
		
		
		<!-- 轮播图片 -->
		<div class="m_banner">
		     <?php foreach ($links['1'] as $key => $value) {?>
			<div class="banner b1" style=" background-image:url(UPLOADS/{$value.logo});" id="banner1"></div>
			 <?php } ?>
			 
	        <!-- <div class="banner b2" style=" background-image:url(IMG/ban1.jpg);display:none;" id="banner2"></div> -->
	        
	        <div class="banner_ctrl"> <a href="#" class="prev" title=""></a> <a href="javascript:;" class="next" title=""></a> </div>
		</div>
		<!-- 轮播图片 END-->
		
	
	
		<div class="sycon">
		
		{block name="content"}
		
            
		 {/block}	
			
		</div>
		
		
		
		
		<script type="text/javascript">

var Speed_1 = 30; //速度(毫秒)
var Space_1 = 20; //每次移动(px)
var PageWidth_1 = 305 * 4; //翻页宽度
var interval_1 = 6000; //翻页间隔时间
var fill_1 = 0; //整体移位
var MoveLock_1 = false;
var MoveTimeObj_1;
var MoveWay_1="right";
var Comp_1 = 0;
var AutoPlayObj_1=null;
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}
function AutoPlay_1(){clearInterval(AutoPlayObj_1);AutoPlayObj_1=setInterval('SL_GoDown_1();SL_StopDown_1();',interval_1)}
function SL_GoUp_1(){if(MoveLock_1)return;clearInterval(AutoPlayObj_1);MoveLock_1=true;MoveWay_1="left";MoveTimeObj_1=setInterval('ISL_ScrUp_1();',Speed_1);}
function SL_StopUp_1(){if(MoveWay_1 == "right"){return};clearInterval(MoveTimeObj_1);if((GetObj('SISL_Cont_1').scrollLeft-fill_1)%PageWidth_1!=0){Comp_1=fill_1-(GetObj('SISL_Cont_1').scrollLeft%PageWidth_1);CompScr_1()}else{MoveLock_1=false}
AutoPlay_1()}
function ISL_ScrUp_1(){if(GetObj('SISL_Cont_1').scrollLeft<=0){GetObj('SISL_Cont_1').scrollLeft=GetObj('SISL_Cont_1').scrollLeft+GetObj('SList1_1').offsetWidth}
GetObj('SISL_Cont_1').scrollLeft-=Space_1}
function SL_GoDown_1(){clearInterval(MoveTimeObj_1);if(MoveLock_1)return;clearInterval(AutoPlayObj_1);MoveLock_1=true;MoveWay_1="right";ISL_ScrDown_1();MoveTimeObj_1=setInterval('ISL_ScrDown_1()',Speed_1)}
function SL_StopDown_1(){if(MoveWay_1 == "left"){return};clearInterval(MoveTimeObj_1);if(GetObj('SISL_Cont_1').scrollLeft%PageWidth_1-(fill_1>=0?fill_1:fill_1+1)!=0){Comp_1=PageWidth_1-GetObj('SISL_Cont_1').scrollLeft%PageWidth_1+fill_1;CompScr_1()}else{MoveLock_1=false}
AutoPlay_1()}
function ISL_ScrDown_1(){if(GetObj('SISL_Cont_1').scrollLeft>=GetObj('SList1_1').scrollWidth){GetObj('SISL_Cont_1').scrollLeft=GetObj('SISL_Cont_1').scrollLeft-GetObj('SList1_1').scrollWidth}
GetObj('SISL_Cont_1').scrollLeft+=Space_1}
function CompScr_1(){if(Comp_1==0){MoveLock_1=false;return}
var num,TempSpeed=Speed_1,TempSpace=Space_1;if(Math.abs(Comp_1)<PageWidth_1/2){TempSpace=Math.round(Math.abs(Comp_1/Space_1));if(TempSpace<1){TempSpace=1}}
if(Comp_1<0){if(Comp_1<-TempSpace){Comp_1+=TempSpace;num=TempSpace}else{num=-Comp_1;Comp_1=0}
GetObj('SISL_Cont_1').scrollLeft-=num;setTimeout('CompScr_1()',TempSpeed)}else{if(Comp_1>TempSpace){Comp_1-=TempSpace;num=TempSpace}else{num=Comp_1;Comp_1=0}
GetObj('SISL_Cont_1').scrollLeft+=num;setTimeout('CompScr_1()',TempSpeed)}}
function picrun_ini(){
GetObj("SList2_1").innerHTML=GetObj("SList1_1").innerHTML;
GetObj('SISL_Cont_1').scrollLeft=fill_1>=0?fill_1:GetObj('SList1_1').scrollWidth-Math.abs(fill_1);
GetObj("SISL_Cont_1").onmouseover=function(){clearInterval(AutoPlayObj_1)}
GetObj("SISL_Cont_1").onmouseout=function(){AutoPlay_1()}
AutoPlay_1();
}
</script>
		
		
        <!-- footer -->
				<footer>
			<div class="foot1">
				<p>Contact Way:{$site.contact}   E-mail: {$site.email} Fax:{$site.fax}</p>
				<p>Address:{$site.code.eaddress}</p>
			
			</div>
			<div class="foot2">
				<div class="foot2con">
					<div class="fba">ICP record number：{$site.ICP}</div>
					<div class="fbq">copyright: {$site.code.ecopyright}    技术支持：<a href="http://www.wanhunet.com">万虎网络</a></div>
				</div>
			</div>
		</footer>
        <!-- footer end -->
		
		
		<div class="flot"><img src="IMG/ewm.png"></div>
		
		
	</body>
</html>

